<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
    <style>
        table {
            border-collapse: collapse;
        }

        th, td {
            border: 1px solid #ddd;
            padding: 8px;
        }
    </style>
</head>
<body>
<a th:href="@{/test/index}">首页</a>
<table>
    <thead>
        <th>名称</th>
        <th>编码</th>
    </thead>
    <tbody>
        <tr th:each="city : ${cityList}">
            <td th:text="${city.name}"></td>
            <td th:text="${city.countryCode}"></td>
        </tr>
    </tbody>
</table>
</body>
</html>